﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lol
{
    class Program
    {
        public static Hero[] Name = new Hero[5];
        public static Hero[] heros = new Hero[5];
        public static Hero[] BaseAttack = new Hero[5];
        public static Hero[] BaseDefense = new Hero[5];
        public static Hero[] BaseLife = new Hero[5];
        public static Hero[] Lexel = new Hero[5];
        public static Hero[] Lifek = new Hero[5];
        public static Hero[] AttackEquip = new Hero[5];
        public static Hero[] DefenseEquio = new Hero[5];
        static void Main(string[] args)
        {
            Sign();
            Console.WriteLine();
        }
        static void Sign()//登录
        {
            bool zj;
            do
            {
                Console.WriteLine("请输入账号");
                var Number = Console.ReadLine();
                Console.WriteLine("请输入密码");
                var Password = Convert.ToInt32(Console.ReadLine());
                if (Number == "scce" && Password == 123)
                {
                    zj = true;
                    Console.WriteLine("登录成功!");
                }
                else
                {
                    zj = false;
                    Console.WriteLine("登录失败");
                    Console.WriteLine("=========================");
                }
            } while (zj == false);

            {
                for (int i = 0; i < heros.Length; i++)//角色
                {
                    heros[0].Name = "嘉文四世";
                    heros[1].Name = "卡特琳娜";
                    heros[2].Name = "盖伦";
                    heros[3].Name = "赵信";
                    heros[4].Name = "艾希";
                    heros[0].BaseAttack = 43;
                    heros[1].BaseAttack = 62;
                    heros[2].BaseAttack = 47;
                    heros[3].BaseAttack = 45;
                    heros[4].BaseAttack = 58;
                    heros[0].BaseDefense = 35;
                    heros[1].BaseDefense = 30;
                    heros[2].BaseDefense = 37;
                    heros[3].BaseDefense = 32;
                    heros[4].BaseDefense = 28;
                    heros[0].BaseLife = 120;
                    heros[1].BaseLife = 100;
                    heros[2].BaseLife = 130;
                    heros[3].BaseLife = 110;
                    heros[4].BaseLife = 80;
                    heros[0].Lexel = 1;
                    heros[1].Lexel = 1;
                    heros[2].Lexel = 1;
                    heros[3].Lexel = 1;
                    heros[4].Lexel = 1;
                    heros[0].Lifek = 120;
                    heros[1].Lifek = 100;
                    heros[2].Lifek = 130;
                    heros[3].Lifek = 110;
                    heros[4].Lifek = 80;
                    heros[0].AttackEquip = 0;
                    heros[1].AttackEquip = 0;
                    heros[2].AttackEquip = 0;
                    heros[3].AttackEquip = 0;
                    heros[4].AttackEquip = 0;
                    heros[0].DefenseEquio = 0;
                    heros[1].DefenseEquio = 0;
                    heros[2].DefenseEquio = 0;
                    heros[3].DefenseEquio = 0;
                    heros[4].DefenseEquio = 0;
                }
            }
            for (int i = 0; i < heros.Length; i++)
            {
                Console.WriteLine($"{i + 1},{heros[i].Name},攻击：{heros[i].BaseAttack},防御：{heros[i].BaseDefense}," + $"生命：{heros[i].BaseLife}");
            }
                string player;
                Console.WriteLine("请输入你的选择号码：");
                player = Console.ReadLine();
                switch (player)
                {
                    case "1":
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine(heros[0].Name);
                        Console.WriteLine(heros[0].Desc);
                        Console.WriteLine($"基础攻击：{heros[0].BaseAttack},基础防御：{heros[0].BaseDefense},基础生命：{heros[0].BaseLife}");
                        Console.WriteLine($"武器:{heros[0].AttackEquip}");
                        Console.WriteLine($"防具:{heros[0].DefenseEquio}");
                        Console.WriteLine($"等级:{heros[0].Lexel},当前生命值：{heros[0].Lifek}");
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine($"你已经选择的英雄：{heros[0].Name},接下来开始的冒险吧");
                        break;
                    case "2":
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine(heros[1].Name);
                        Console.WriteLine(heros[1].Desc);
                        Console.WriteLine($"基础攻击：{heros[1].BaseAttack},基础防御：{heros[0].BaseDefense},基础生命：{heros[1].BaseLife}");
                        Console.WriteLine($"武器:{heros[1].AttackEquip}");
                        Console.WriteLine($"防具:{heros[1].DefenseEquio}");
                        Console.WriteLine($"等级:{heros[1].Lexel},当前生命值：{heros[1].Lifek}");
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine($"你已经选择的英雄：{heros[1].Name},接下来开始的冒险吧");
                        break;
                    case "3":
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine(heros[2].Name);
                        Console.WriteLine(heros[2].Desc);
                        Console.WriteLine($"基础攻击：{heros[2].BaseAttack},基础防御：{heros[0].BaseDefense},基础生命：{heros[2].BaseLife}");
                        Console.WriteLine($"武器:{heros[2].AttackEquip}");
                        Console.WriteLine($"防具:{heros[2].DefenseEquio}");
                        Console.WriteLine($"等级:{heros[2].Lexel},当前生命值：{heros[2].Lifek}");
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine($"你已经选择的英雄：{heros[2].Name},接下来开始的冒险吧");
                        break;
                    case "4":
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine(heros[3].Name);
                        Console.WriteLine(heros[3].Desc);
                        Console.WriteLine($"基础攻击：{heros[3].BaseAttack},基础防御：{heros[0].BaseDefense},基础生命：{heros[3].BaseLife}");
                        Console.WriteLine($"武器:{heros[3].AttackEquip}");
                        Console.WriteLine($"防具:{heros[3].DefenseEquio}");
                        Console.WriteLine($"等级:{heros[3].Lexel},当前生命值：{heros[3].Lifek}");
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine($"你已经选择的英雄：{heros[3].Name},接下来开始的冒险吧");
                        break;
                    case "5":
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine(heros[4].Name);
                        Console.WriteLine(heros[4].Desc);
                        Console.WriteLine($"基础攻击：{heros[4].BaseAttack},基础防御：{heros[0].BaseDefense},基础生命：{heros[4].BaseLife}");
                        Console.WriteLine($"武器:{heros[4].AttackEquip}");
                        Console.WriteLine($"防具:{heros[4].DefenseEquio}");
                        Console.WriteLine($"等级:{heros[4].Lexel},当前生命值：{heros[4].Lifek}");
                        Console.WriteLine("---------------------------------------");
                        Console.WriteLine($"你已经选择的英雄：{heros[4].Name},接下来开始的冒险吧");
                        break;
                    default:
                        Console.WriteLine("输入错误，请重新输入：");
                        break;
                } while (player != "0") ;
            }
        }
    }

